CHMOD
Section: MINTLIB LIBRARY FUNCTIONS
(3)
Updated: 3 March 1993
Index
Return to Main Contents
NAME
chmod - change mode of file
SYNOPSIS
#include <unistd.h>
int chmod(const char *path, int mode);
DESCRIPTION
path points to a path name naming a file. chmod sets the access
permission portion of the named file's mode according to the
bit pattern contained in the mode parameter.
The possible access permission bits are defined in the include
file <sys/stat.h>, see the stat call.
The effective user ID of the process must match the owner of the
file or be super-user to change the mode of a file.
RETURN VALUES
0 on success
-1 on failure; errno is set to indicate the error.
SEE ALSO
chown(3),
creat(3),
fcntl(3),
open(3),
stat(3),
umask(3),
Fchmod(2),
Fattrib(2)
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- RETURN VALUES
-
- SEE ALSO
-
This document was created by
man2html,
using the manual pages.
Time: 11:14:51 GMT, June 22, 2025